import { defineStore } from 'pinia'

interface IMessageState {
    url: string
    img: string
    title: string
    text: string
    time: string
}

interface IMessagesState {
    items: IMessageState[]
}

//@ts-ignore
const useMessagesStore = defineStore('messages', {
    state: (): IMessagesState => ({
        items: [
            //{url: "#", img: "", title: "Example", text: "example", time: "Now"}
        ],
    }),
    getters: {
    },
    actions: {
    },
    //@ts-ignore
    persist: {
        enabled: true,
    },
});

export default useMessagesStore;
